package com.itheima01;

/*
    this : 当前对象(谁调用,就是谁)
 */
public class ThisDemo {

    public static void main(String[] args) {

//        Person p = new Person();
        //com.itheima01.Person@610455d6
//        System.out.println(p);
        //this:com.itheima01.Person@610455d6
//        p.speak();
        System.out.println("----------");

        Person s = new Student();
//        this:com.itheima01.Student@610455d6
        s.speak();
    }
}
